package com.kun.reflection.demo01;

import org.junit.Test;

import java.lang.annotation.ElementType;
import java.lang.annotation.Target;

//哪些类拥有对应的Class对象
public class Test03_class {

    @Test
    public void test01() throws ClassNotFoundException {
        Class c1 = Object.class;    //类
        Class c2 = Runnable.class;   //接口
        Class c3 = String[].class;  //一维数组
        Class c4 = String[][].class; //二维数组
        Class c5 = Integer.class;       //基本类型
        Class c6 = void.class;          //void类型
        Class c7 = ElementType.class;   //枚举类型
        Class c8 = Target.class;        //注解类型
        Class c9 = Class.class;    //Class.class

        System.out.println(c1);
        System.out.println(c2);
        System.out.println(c3);
        System.out.println(c4);
        System.out.println(c5);
        System.out.println(c6);
        System.out.println(c7);
        System.out.println(c8);
        System.out.println(c9);

    }
}
